<?php
namespace App\Models;

class ClientUserMessage extends CommonModel {
	
	/**
	 * @param $uid
	 * @param $title
	 * @param $content
	 * @param int $type_id
	 * @return int id
	 * 发送站内信
	 */
	public static function send($uid,$title,$content,$type_id = 1){
		$add = [
			'uid'		=> $uid,
			'type_id'	=> $type_id,
			'title'		=> $title,
			'content'	=> $content,
		];
		$id = static::create($add)->id;
		return $id;
	}
}